#include "stdafx.h"
#include "NCULabel.h"
NCULabel::NCULabel():
m_id(ErrorType), m_numCV(0)
{
}
NCULabel::NCULabel(const char &id):
m_id(id)
{
}
NCULabel::NCULabel(const char &id, const unsigned int &num):
m_id(id), m_numCV(num)
{
}
NCULabel::NCULabel(const NCULabel &rhs):
m_id(rhs.m_id), m_numCV(rhs.m_numCV)
{
}	
NCULabel& NCULabel::operator=(const NCULabel &rhs)
{
	if ( this != &rhs)
	{
		m_id = rhs.m_id;
        m_numCV = rhs.m_numCV;
	}
        return (*this);
}
NCULabel::~NCULabel()
{
	// do nothing
}
void NCULabel::identity(const char &id)
{
	m_id = id;
}
const char& NCULabel::identity() const
{
	return m_id;
}
void NCULabel::numCV(const unsigned int &num)
{
	m_numCV = num;
}
const unsigned int& NCULabel::numCV() const
{
	return m_numCV;
}
const string NCULabel::label() const
{
	string tmp;
	char buffer[nCV];
	tmp.push_back(m_id);
	_itoa_s(m_numCV, buffer, 10);
	tmp += buffer;
	return tmp;
}
		